﻿CREATE TABLE [dbo].[Valkrets] (
    [Id]         UNIQUEIDENTIFIER NOT NULL,
    [ValId]      UNIQUEIDENTIFIER NOT NULL,
    [Skapad]     DATETIME         NOT NULL,
    [SkapadAv]   NVARCHAR (50)    NOT NULL,
    [Andrad]     DATETIME         NULL,
    [AndradAv]   NVARCHAR (50)    NULL,
    [Benamning]  NVARCHAR (50)    NOT NULL,
    [ValkretsNr] NVARCHAR (50)    NULL,
    CONSTRAINT [PK_Valkrets] PRIMARY KEY CLUSTERED ([Id] ASC, [ValId] ASC),
    CONSTRAINT [FK_Valkrets_Val] FOREIGN KEY ([ValId]) REFERENCES [dbo].[Val] ([Id])
);



